From: Florian Müllner Date: Thu, 4 Oct 2012 16:09:01 +0000 (+0200) Subject: messageTray: Reset summary after losing focus to outside actor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5639 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5bfcc5392d9dc6ae8836ad74be84fd7cbcf4359b;p=gnome-shell.git messageTray: Reset summary after losing focus to outside actor Currently when the summary boxpointer is ungrabbed automatically because the keyboard focus was moved outside the message tray (for instance by selecting the overview search entry or opening the right-click menu of a dash item), after the popup is hidden _updateState() will grab focus and show the popup again. Work around this by unsetting the clicked summary item when losing focus to an actor outside the message tray. https://bugzilla.gnome.org/show_bug.cgi?id=685156 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 30ce5cc1c..40d5ee062 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -2495,6 +2495,9 @@ const MessageTray = new Lang.Class({ this._summaryBoxPointer.actor.hide(); this._hideSummaryBoxPointerCompleted(); } else { + if (global.stage.key_focus && + !this.actor.contains(global.stage.key_focus)) + this._setClickedSummaryItem(null); this._summaryBoxPointer.hide(BoxPointer.PopupAnimation.FULL, Lang.bind(this, this._hideSummaryBoxPointerCompleted)); } },